package client.window;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JPanel;

public class JPanelFondo extends JPanel{

	private ImageIcon imagen;
	
	public JPanelFondo(){
	}
	
	public void setImagen(ImageIcon img){
		this.imagen = img;
	}

	public void paint(Graphics g) {
	     g.drawImage(imagen.getImage(), 0, 0, getWidth(), getHeight(), this);
	     setOpaque(false);
	     super.paint(g);
	}
}
